﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAO;

public partial class Inicio : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        cargaGrillaClases();
    }
    public void cargaGrillaClases()
    {
        try
        {
            dgvInicio.DataSource = ClaseDAO.obtenerClases();
            dgvInicio.DataBind();
        }
        catch (SystemException ex)
        {
            lblError.Text = ex.Message;
        }
    }
}